<div id="isikiri" style="width: 160px">
	<div id="tempatfoto">
		<img src="<?php echo $this->session->userdata('foto'); ?>" width="267" height="400" />
	</div>
    <p>&nbsp;</p>
</div>
<!---mulai div isikanan --->
<div id="isikanan">
	<div class="din pel"><?php echo $this->session->userdata('nama'); ?>
		<span class="black">Edit</span>
	</div>
	<?php echo $this->load->view('schedule/profile_nav'); ?>
	<div class="clear"></div>
	<!---mulai div biodata --->
	<div id="biodata">
		<div class="xmen din">Edit Biodata</div>
		<?php echo form_open('schedule/schedule_con/update_biodata') ?>

		<div class="judulform">Password</div>
		<div>
			<input value="<?php echo $this->session->userdata['password'] ?>" class="isian f1" type="password" name="password" id="textfield" />
		</div>
		<?php if($this->session->userdata('role')=='peserta') {?>
		<div class="judulform">Jenis Kelamin</div>
		<div>
			<select name="jenis_kelamin" class="isian f6" style="width: 110px">
				<?php 
					if ( (empty($biodata['JENIS_KELAMIN'])) || (strcmp($biodata['JENIS_KELAMIN'], "-")) ){ 
						echo "<option value='-1'>-</option>";
					}
				?>
				<option value="wanita" <?php if (strcmp($biodata['JENIS_KELAMIN'], "wanita") == 0) echo "selected='selected'" ?>>Wanita</option>
				<option value="pria" <?php if (strcmp($biodata['JENIS_KELAMIN'], "pria") == 0) echo "selected='selected'" ?>>Pria</option>
			</select>
		</div>

		<div class="judulform">Tempat Lahir</div>
		<div>
			<input value="<?php $this->users->print_data($biodata['TEMPAT_LAHIR']); ?>" class="isian f2" type="text" name="tempat_lahir" id="textfield" />
		</div>

		<div class="judulform">Birth Day</div>
		<div>
			<select name="date" class="isian f6" id="select">
				<?php if ( (empty($biodata['date'])) || (strcmp($biodata['JENIS_KELAMIN'], "-"))) echo "<option value='-1'>-</option>";?>
				<?php echo generate_options(1, 31, $biodata['date'] - 0); ?>
			</select>
			<select name="month" class="isian f3" id="select2">
				<?php if ( (empty($biodata['month'])) || (strcmp($biodata['JENIS_KELAMIN'], "-"))) echo "<option value='-1'>-</option>";?>
				<?php echo generate_options(1, 12, $biodata['month'] - 0, 'callback_month'); ?>
			</select>
			<select name="year" class="isian f6" id="select3">
				<?php if ( (empty($biodata['year'])) || (strcmp($biodata['JENIS_KELAMIN'], "-") )) echo "<option value='-1'>-</option>";?>
				<?php echo generate_options(2011, 1900, $biodata['year'] - 0) ?>
			</select>
		</div>
		<div class="judulform">Pekerjaan</div>
		<div>
			<textarea name="pekerjaan" rows="2" class="isian f1" id="textfield"><?php $this->users->print_data($biodata['PEKERJAAN']); ?></textarea>
		</div>
		<?php } ?>
		<div class="judulform">No Telepon</div>
		<div>
			<input value="<?php $this->users->print_data($biodata['NO_TELP']);?>"  class="isian f2" type="text" name="no_telp" id="textfield" />
		</div>

		<div class="judulform">Address</div>
		<div>
			<textarea name="alamat" rows="2" class="isian f1" id="textfield"><?php $this->users->print_data($biodata['ALAMAT']); ?></textarea>
		</div>

		<div class="judulform">Email</div>
		<div>
			<input value="<?php $this->users->print_data($biodata['EMAIL']); ?>"  class="isian f2" type="text" name="email" id="textfield" />
		</div>

		<div class="tempatbutton">
			<input class="save" type="submit" name="button" id="button" value="Save" />
		</div>
		<?php echo form_close() ?>

	</div>
	<!---selesai div biodata --->
</div>